package com.gz.logistics.app;

import org.apache.http.client.protocol.RequestTargetAuthentication;

public class Define {

	public static final int REQ_UNKNOW = -1;//无请求
	public static final int REQ_OK = 0x0;//请求成功
	public static final int REQ_FAILED = 0x1;//请求失败
	public static final int REQ_OFFLINE = 0x2;//离线状态，需要重新登录
	public static final int REQ_NO_MORE_DATA = 0x4;//没有更多数据
	
	public static final int LISTVIEW_ITEM_MIN_SIZE = 5;

	public static final int ACTIVITY_CODE_PICTURE_FROM_ALBUM = 0;
	public static final int ACTIVITY_CODE_PICTURE_FROM_CAMERA = 1;
	public static final int ACTIVITY_CODE_ORDER_DETAIL = 2;

	public static final int ACTIVITY_CODE_ORDER_DETAI_CHANGE = 3;

	public static final int ACTIVITY_CODE_ASSEMBLE_DETAIL = 2;
	public static final int ACTIVITY_CODE_ASSEMBLE_DETAI_CHANGE = 3;

	public static final int ACTIVITY_CODE_ORDER_CANCEL = 3;
	public static final int ACTIVITY_CODE_ORDER_PAID = 4;
	public static final int ACTIVITY_CODE_ORDER_SIGN = 5;
	public static final int ACTIVITY_CODE_APPLY_EXCHANGE = 6;
	public static final int ACTIVITY_CODE_SETUP_INVOICE = 102;
	public static final int ACTIVITY_CODE_PAY_DELIVERY = 103;
	public static final int ACTIVITY_CODE_ADD_RECEIVER_INFO = 104;
	public static final int ACTIVITY_CODE_UPDATE_RECEIVER_INFO = 105;

	public static final int ORDER_STATUS_NO_PAY = 0; 
	public static final int ORDER_STATUS_PAID = 1;
	public static final int ORDER_STATUS_DELIVERIED = 2;
	public static final int ORDER_STATUS_SIGN_IN = 4;
	public static final int ORDER_STATUS_INVALIDATE = 5;
	public static final int ORDER_STATUS_CANCEL = 6;
	public static final int ORDER_STATUS_STOCK_UP = 8;
	
	/**
	 * 退换货审核中
	 */
	public static final int ORDER_EXCHANGE_STATUS_UNDER_CHECK = 1;
	/**
	 * 退换货处理中
	 */
	public static final int ORDER_EXCHANGE_STATUS_UNDER_PROCESS = 2;
	/**
	 * 退换货被驳回
	 */
	public static final int ORDER_EXCHANGE_STATUS_REJECT = 3;
	/**
	 * 退换货完成
	 */
	public static final int ORDER_EXCHANGE_STATUS_FINISH = 4;

	/**
	 * 支付方式：在线支付
	 */
	public static final int PAY_TYPE_ONLINE_PAY = 0;
	/**
	 * 支付方式：货到付款
	 */
	public static final int PAY_TYPE_DELIVERY_PAY = 1;
	
	public static final int OBSERVER_TYPE_REFRESH_ORDER_DETAIL = 1;
	
	public static final String ACTION_REFRESH_SHOPPING_CART = "com.gz.mylife.action.REFRESH_SHOPPING_CART";
	public static final String ACTION_EXIT_WHOLE_APP = "com.gz.mylife.action.EXIT_WHOLE_APP";
	public static final String ACTION_WECHAT_AUTH_SUCCESS = "com.gz.mylife.action.ACTION_WECHAT_AUTH_SUCCESS";
	public static final String ACTION_MYEQUIMENT_SUCCESS = "com.gz.mylift.action.action.myequiments";
	public static final String VOUCHER_NAME = "金豆";
	
//	public static final String URL_HOST = "http://192.168.0.123/fan/api/public/index.php";
	
	public static final String PREFERENCE_KEY_UID = "key_uid";
	public static final String PREFERENCE_KEY_TOKEN = "key_token";
	public static final String PREFERENCE_KEY_CID = "key_cid";
	public static final String PREFERENCE_KEY_SHOPPING_CART_NUM = "key_shopping_cart_num";
	public static final String PREFERENCE_KEY_UNREAD_IM_COUNT= "unread_im_count"; // 私信的未读数
	public static final String PREFERENCE_KEY_CHAT_SESSION_NOTIFICATION = "key.chat_session.notification";
	public static final String PREFERENCE_KEY_APP_NEW_VERSION  = "key_app_new_version"; //新版本
	public static final String KEY_UPLOAD_HIDE_PIM = "key_upload_hide_pim";
	public static final String KEY_HAS_NEW_VERSION = "key_has_new_version";
	
	public static final String MSG_NO_NETWORK = "无网络，点击加载……";
	public static final String MSG_UNDER_LOADING = "卖命加载中……";
	public static final String MSG_NOTHING = "暂无内容";
	public static final String MSG_NO_MORE_DATA = "已显示全部内容";
	public static final String MSG_LOADING_BY_CLICK = "点击重新加载……";
	public static final String MSG_LOADING_MORE = "滑动加载更多";
	public static final String MSG_LOADING_FAILED_LOADING_AGEIN = "加载失败, 请重新加载……";
	public static final String MSG_OFFLINE_ERROR = "你已处于离线状态";
	public static final String MSG_OPERATE_FAILED_RETRY = "操作失败, 请重试";
	public static final String MSG_NEW_IM_TITLE="您有新私信!";
	public static final String MSG_LOGIN_SUCCESS = "登录成功";
	public static final String MSG_LOGIN_FAILED = "登录失败";
	public static final String MSG_NULL_CONNECT = "无法检测到可用网络";
	public static final String MSG_LOAD_FAILED_LOAD_AGAIN = "加载失败，滑动重试";
	public static final String MSG_SEARCH_NOTHING = "暂无此类商品信息";

	public static final String ORDER_STATUS_NO_PAY_TEXT = "未支付"; 
//	public static final String ORDER_STATUS_PAID_TEXT = "支付成功";
	public static final String ORDER_STATUS_PAID_TEXT = "已支付";
//	public static final String ORDER_STATUS_DELIVERIED_TEXT = "已发货";
	public static final String ORDER_STATUS_DELIVERIED_TEXT = "发货中";
//	public static final String ORDER_STATUS_SIGN_IN_TEXT = "交易成功";//已签收
	public static final String ORDER_STATUS_SIGN_IN_TEXT = "已签收";//已签收
//	public static final String ORDER_STATUS_INVALIDATE_TEXT = "交易失效";
	public static final String ORDER_STATUS_INVALIDATE_TEXT = "已失效";
//	public static final String ORDER_STATUS_CANCEL_TEXT = "交易取消";
	public static final String ORDER_STATUS_CANCEL_TEXT = "已取消";
	public static final String ORDER_STATUS_STOCK_UP_TEXT = "备货中";
	public static final String ORDER_STATUS_TAKE_SELF_TEXT = "自提中";

	public static final String ORDER_EXCHANGE_STATUS_UNDER_CHECK_TEXT = "审核中";
	public static final String ORDER_EXCHANGE_STATUS_FINISH_TEXT = "已结束";
	
	public static final String TAG_FRAGMENT_TOPIC = "FragmentTopic";
	public static final String TAG_FRAGMENT_SEARCH_RESULT = "FragmentSearchResult";

	public static final String KEY_FROM_NOTIFACTION = "key.from.notificaiton";

	public static final String APP_ID_QQ = "222222";
	//public static final String APP_ID_QQ = "1104588866"; 
	public static final String APP_ID_WECHAT = "wx0ec0adaac661fb0f";
	public static final String APP_SECRET_WECHAT = "5250bb4a41382b614a356435c3229413";
	
	public static final String SP_HAS_NEW_VERSION = "has_new_version";
	
	public static final String PUSH_TYPE_PRIVATE_LETTER = "20";
	
	public final static String refresh_dyncmic_unread="refresh_dyncmic_unread_action";// 动态的未读数更新
	//---------------------------------------------------------------------------------------------------------------

    public final static int IDENTIFY_DELIVERYER = 1 ;//1 代表配送员
    public final static int IDENTIFY_PURCHASER = 2; //2代表代购人员

	public final static String MSG_ERROR_USERNAME_OR_PWD="用户名或密码错误";
	public final static String MSG_USER_FORBIDDEN= "该用户名已被禁止使用";
	// 订单物流的基本状态
	public final static int FLAG_TRANS_STATUS_ALL = 0 ;// 已签收物流和未签收物流
	public final static int FLAG_TRANS_STATUS_SIGNED = 1; //已签收物流
	public final static int FLAG_TRANS_STATUS_NO_SIGN = 2 ; //还未签收物流 logistics 也是物流的意思
    // 订单业务的基本状态
	public final static int FLAG_DELEVERY_STATUS_ALL = 0 ;// 已经业务签收 和 还未业务签收
	public final static int FLAG_DELEVERY_STATUS_SIGNED = 1 ; // 已经进行业务签收
	public final static int FLAG_DELEVERY_STATUS_NO_SIGN = 2 ;// 还未进行业务签收

	// 订单查询页面，状态选择，提供一下几个状态
	public final static int ORDER_STATUS_ALL = 0; // 所有订单：物流状态= 0 && 业务状态 = 0；
	public final static int ORDER_STATUS_LOGISTIC_SIGNED = 1;//物流已签收： 物流状态= 1 && 业务状态 = 0；
	public final static int ORDER_STATUS_LOGISTIC_NOT_SIGN = 2;//物流待签收：物流状态 = 2 && 业务状态 = 0；
	public final static int ORDER_STATUS_DELIVERY_SIGNED = 3; // 业务已签收： 物流状态= 1 &&  业务状态 = 1；
	public final static int ORDER_STATUS_DELIVERY_NOT_SIGN = 4 ;//业务代签收： 物流状态 = 1 && 业务状态 = 2；



	public final static  int FLAG_CPUCBT_DELIVERY = 0 ;//送货上门
	public final static  int FLAG_CPUCBT_SELEF_GET = 1 ; //自取

	public final static int FLAG_PAY_TYPE_ONLINE = 0 ;//在线支付
	public final static int FLAG_PAY_TYPE_CRASH = 1;// 货到付款


	public final static int FLAG_ASSEMBLE_NOT_SIGNED = 0;//预出库单未被签收
	public final static int FLAG_ASSEMBLE_IS_SIGNED = 1;//预出库单已被签收

	public static final String ACTION_REFRESH_HOME = "com.gz.logistics.action.REFRESH_HOME";// 刷新首页







}
